{extend  name="manage@public/layout" /}
{block name="content"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>业务员统计</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link" onclick="location.replace(location.href);">
                                <i class="fa fa-refresh"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="table-responsive">
                            <!--- 搜索--->
                            <form action="" method="get">
                                <div class="col-sm-1 col-sm-on">
                                    <input name="account_name" placeholder="业务员姓名" value="{notempty name="data['account_name']"}{$data['account_name']}{/notempty}" class="form-control input-sm layer-date">
                                </div>
                                <div class="col-sm-4 col-sm-on col-sm-auto">
                                    <input style="width:155px;cursor:not-allowed;" placeholder="开始日期" class="input-sm form-control form-control layer-date" name="start" value="{empty name="data['start']"}{else/}{$data.start}{/empty}" readonly id="start"><i style="position: relative;top:5px;">&nbsp;-&nbsp;</i>
                                    <input style="width:155px;cursor:not-allowed;" placeholder="结束日期" class="input-sm form-control form-control layer-date" name="end" value="{empty name="data['end']"}{else/}{$data.end}{/empty}" readonly id="end">
                                </div>
                                <div class="col-sm-1 col-sm-botton">
                                    <div class="input-group">
                                        <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-search"></i></button>
                                    </div>
                                </div>
                                <!-- <div class="col-sm-1 col-sm-botton">
                                    <div class="input-group">
                                        <button title="导出" name="platform_export" value="export" type="submit" class="btn btn-sm btn-primary"><i class="fa fa-download"></i></button>
                                    </div>
                                </div> -->
                            </form>
                            <!--- end --->
                            <table class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>业务员</th>
                                        <th>学员</th>
                                        <th>所属公司</th>
                                        <th>协议金额</th>
                                        <th>已缴金额</th>
                                        <th>未缴金额</th>
                                        <th>时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="list" id="vo"}
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.account_name}</td>
                                        <td>{$vo.user_name}</td>
                                        <td>{$vo.company_name}</td>
                                        <td>{$vo.agreement_price}</td>
                                        <td>{$vo.all_submit_price}</td>
                                        <td>{$vo.all_overdue_price}</td>
                                        <td>{$vo.create_time}</td>
                                      
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                            <div style="float:right;" class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                {$page|raw}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 
   
{/block}
{block name="script"}

<script>
    //时间插件
    var start = {
        elem:"#start",
        format:"YYYY-MM-DD hh:mm:ss",
        min:$("input[name='st_start']").val(),
        max:$("input[name='st_end']").val(),
        istime:true,
    };
    var end = {
        elem:"#end",
        format:"YYYY-MM-DD hh:mm:ss",
        min:$("input[name='st_start']").val(),
        max:$("input[name='st_end']").val(),
        istime:true,
    };
    laydate(start);laydate(end);


    function modaldemo() {
        $("#modal-demo").modal("show");
    }
</script>
{/block}

